package com.xxrl.shop.repository;

import com.xxrl.shop.domain.Merchant;
import com.xxrl.shop.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author mis
 */
public interface MerchantRepository extends JpaRepository<Merchant,Long> {

    /**
     * 根据用户查询商家
     * @param user 用户
     * @return 商家
     */
    Merchant queryByUser(User user);
}

